little changes on the tie function in the game