@Override
		public void actionPerformed(ActionEvent e) {
			if(e.getSource() == nextPlayer) {
				if(game.turnDone && !game.isGameDone()) {
					if(game.getCurrentPlayerIndex() + 1 == game.getPlayers().size())
						game.setCurrentPlayerIndex(0);
					else
						game.setCurrentPlayerIndex(game.getCurrentPlayerIndex() + 1);
					setCurrentPlayer(game.getPlayers().get(game.getCurrentPlayerIndex()).getName());
					game.setCurrentPlayer(game.getPlayers().get(game.getCurrentPlayerIndex()));
					game.getHuman().setMadeAccusation(false);
					int roll = ClueGame.roll();
					setRoll(roll);
					game.setTurnDone(false);
					game.takeTurn(roll);
				}
				else {
					JOptionPane.showMessageDialog(null,"Your turn is not done yet.", "Your turn is not done yet.", JOptionPane.ERROR_MESSAGE);
				}
			}
			else if(e.getSource() == accusation) {
				if(game.getCurrentPlayer() == game.getHuman() && game.getPlayers().contains(game.getHuman()) && !game.getHuman().isMadeAccusation() && !game.turnDone) {
					accPanel = new AccusationPanel(game);
					accPanel.setVisible(true);
				}
				else {
					JOptionPane.showMessageDialog(null,"You cannot make an accusation at this time.", "You cannot make an accusation at this time.", JOptionPane.ERROR_MESSAGE);
				}
			}
		}