public int move(Team tempTeam, int currentPlayer) {
		
		if(!board.getCellAt(ball.getLocation()).isGoal()) {
			Player tempPlayer = tempTeam.getTeam().get(currentPlayer);
			int playerLocation = tempPlayer.getLocation();
			LinkedList<Integer> playerAdjacencies = board.getAdjacencyList(playerLocation);
			ArrayList<Cell> playerAdjacentCells = new ArrayList<Cell>();
			boolean badLoc = false;
			
			for(int i : playerAdjacencies) {
				for(Player tP : players) {
					if(tP.getLocation() == i) {
						badLoc = true;
					}
				}
				
				if (board.getCellAt(i).isOutOfBounds() || board.getCellAt(i).isGoal()) {
					badLoc = true;

				}
				
				if(!badLoc) {
					playerAdjacentCells.add(board.getCellAt(i));
				}
				
				badLoc = false;
			}

			tempPlayer.move(playerAdjacentCells, board, ball);
			board.repaint();

			currentPlayer++;
			
			if (currentPlayer == 11){
				currentPlayer = 0;
			}

		}

		else
			playGame = false;
		
		return currentPlayer;
	}