Added ifOutField method that forbids the player from leaving the game field.