public void checkSideCollision(Rectangle rleft, Rectangle rright,
			Rectangle leftfoot, Rectangle rightfoot) {
		if (type != 5 && type != 2 && type !=0){
			if (rleft.intersects(r)) {
				robot.setCenterX(tileX + 102);
				robot.setSpeedX(0);
			} else if (leftfoot.intersects(r)){
				robot.setCenterX(tileX+85);
				robot.setSpeedX(0);
			}
			
			if (rright.intersects(r)){
				robot.setCenterX(tileX - 62);
				robot.setSpeedX(0);
			} else if (rightfoot.intersects(r)){
				robot.setCenterX(tileX - 45);
				robot.setSpeedX(0);
			}
		}

	}