private void move_Click(object sender, EventArgs e) { if (player.validMove(controlInput) || controlInput.Length > 0) { player.Move(controlInput); if (map.getPlayerIndex() == "W") { playerOpposite.Image = Image.FromFile(graphicalInterface.displayPit()); status.Text = "You are in the same cave as the Wumpus!"; Thread.Sleep(1500); player.WumpTrivia(); } if (map.getPlayerIndex() == "D") { playerOpposite.Image = Image.FromFile(graphicalInterface.displayPit()); status.Text = "You have fallen into a ditch! You lose!"; Thread.Sleep(2000); this.Hide(); (new Lose()).Show(); Thread.Sleep(2000); this.Hide(); (new HighScores()).Show(); } if (map.getPlayerIndex() == "B") { playerOpposite.Image = Image.FromFile(graphicalInterface.displayBat()); status.Text = "You have run into a bat! You're getting moved!"; map.randomizePlayer(); } goldBox.Text = "Total Gold: " + player.getGold(); scoreBox.Text = "Total Score: " + player.getScore(); } updateConnections(); }