fixed level select bug

$main_player was not being created from the player class when choosing
levels so the .name function reads as undefined