preparing game over and win states