public void run()
	{
		long currentTime = 0;
		
		while(true)
		{
			try
			{
				sleep(20);
			}
			catch (InterruptedException e)
			{
				e.printStackTrace();
			}
			
			currentTime = System.currentTimeMillis();
			
			if(vizFlag && currentTime - vizTime > GlobalGameboard.vizualizationTime)
			{
				vizFlag = false;
				gameRunner.sendGameboard();
			}
			
			if(playerFlag && currentTime - playerTime > GlobalGameboard.playerMoveTime)
			{
				gameRunner.makeMove("stay", gameRunner.getCurrentPlayerIndex());
			}
			
			if(playerFlag && !gameRunner.isCurrentPlayerAlive())
			{
				gameRunner.makeMove("dead", gameRunner.getCurrentPlayerIndex());
			}
		}
	}