Organized code, added levelchange bool in player