Turns out I forgot to reset the player's position when he falls off the map and tries to restart. Too late to fix it I guess. You can restart the game when the issue happens or you can add this line:
self.player.position = [944.75, 830] under if(self.game_restart.is_clicked(scaled_position = mouse_position)): in game.py and it should fix the issue.
Thank you for playing!