fixed game over conditions, wrote more game tests