Made it not spammy and added endGamemode