resign game logic and other updates