onPlayerMove now also checks if player's Y change