Endgame logic going to gameboard