Changed CheckIfPlayerCanEnterScoreboard method and added tests