removed .then and player switch function as they broke the game