Mixed the PlayerCake event with the main class.