Hello!
I'm programming a method, where a spider changes the places of the flies. 
look at this: http://prntscr.com/6e64gx. First it has to be like the left picture, at the end it has to be like the right one. 
The code is given and it's programmed for RUN not for ACT. I just need the command for else(obstacleRight()) >.<
Normally they are in german, I just translated them into english, so they aren't the correct codes, just the words are translated, hope u still understand.
Thanks ahead for help!! :)
  
public void ChangeThePlacesOfFlies() {
        feedSpider(2);
        if(flyAtPlace())
            {
               eatFly();
               run();
            }
        else if(!flyAtPlace())
            {
                spitOutFly();
                run();
            }
        else if(obstacleRight())
            {
                ?????
            }
            nachrichtenVerbergen();
        }
 
          
         
   


