tottalyy redo of logic of the game page