public void moveRandom(JLabel[] player2) {

		// makes the "AI" move in a random direction

		try {
			Thread.sleep(200);
		} catch (InterruptedException ie) {
		}
		int numOfMoves = (int) (Math.random() * 13 + 1); // Can move up to 13
															// places
		if (Math.random() < 0.5)
			for (int x = 0; x < numOfMoves; x++) { // Repeats for the number of
													// intended moves
				if (!(player2[3].getX() + 3 < 20)) // Prevents going off the
													// screen
					p2.p2Left();
				try {
					Thread.sleep(20); // Pause so that the AI does not teleport
				} catch (InterruptedException ie) {
				}
			}
		else
			for (int x = 0; x < numOfMoves; x++) {
				if (!(player2[6].getX() + 3 > 252))
					p2.p2Right();
				try {
					Thread.sleep(20);
				} catch (InterruptedException ie) {
				}
			}

	}