Updated code in the level switch

Updated it to work with the score system.