Added nextY method in player