I have this
What i need to do is when the Luchador touch the obstacle, the direccion of the Luchador changes, but there is a problem.
if(getX().Luchador== getX().Obstacle && getY().Luchador== getY().Obstacle){
move=-1;
}

