@Override
	   public void move(){
			   if(!engine.getPhysics().canMove(this, this.getLocation().getX(), this.getLocation().getY()+5)){
		   if(side == true){
			   
		
			
			   
			   if(!engine.getPhysics().canMove(this, this.getLocation().getX()+5, this.getLocation().getY()+5))
		  engine.getPhysics().usePhysics(this, this.getLocation().getX()+5, this.getLocation().getY());
			   else
			   {
					  side = false;
					  setNext(1);}   
			   
		   
		   
		  if( !engine.getPhysics().canMove(this, this.getLocation().getX()+5, this.getLocation().getY())){
			  side = false;
		  setNext(1);}
		  
		  
		   }else{

			   
		  
			   if(!engine.getPhysics().canMove(this, this.getLocation().getX()-5, this.getLocation().getY()+5))
	      engine.getPhysics().usePhysics(this, this.getLocation().getX()-5, this.getLocation().getY());
				  else{
						
					  side = true;
					  setNext(2);}   
			   
			   
			   
		  if( !engine.getPhysics().canMove(this, this.getLocation().getX()-5, this.getLocation().getY())){
			  side = true;
		  setNext(2);}
		  
		   
		   }}
			 engine.getPhysics().useGravity(this, getLocation().getX(), getLocation().getY());
		   
		   
	   }