private void computerTakeTurn(){
		if(checkWin(true)){
			if(gameChangeListener != null) gameChangeListener.win(true);
		}
		
		playersTurn = false; // Prevent player input

		// Pause so player can see what is happening
		try{Thread.sleep(2000);} catch (InterruptedException e) {e.printStackTrace();}
		
		// Get best move for comp
		Term[] arg = 
			{new Atom("red"), toTankList(), new Variable("NewTankList")};
		Query q = new Query("doBestMoveForTeam", arg);
		Hashtable<?, ?> result = q.oneSolution();
		
		// Render game after computer move
		loadTanksFromTerm((Term)result.get("NewTankList"));
		repaint();
		
		if(checkWin(false)){
			if(gameChangeListener != null) gameChangeListener.win(false);
		}
		
		// Enable player input
		energy = 100;
		if(gameChangeListener != null) gameChangeListener.energyChanged(energy);
		playersTurn = true;
	}