private void checkPoint() {
		
		// Ball went past left side
		if (ball.getX() + ball.getWidth() / 2 < 0) {
			ballSleep = Calendar.getInstance().getTimeInMillis() + POINT_DELAY;
			ball.setPos(paddles[0].getX() + paddles[0].getWidth() / 2 + ball.getWidth() / 2, paddles[0].getY());
			ball.setXSpeed(- ball.getXSpeed());
			scores[1]++;
		}
		
		// Ball went past right side
		if (ball.getX() - ball.getWidth() > WINDOW_DIMENSIONS[0]) {
			ballSleep = Calendar.getInstance().getTimeInMillis() + POINT_DELAY;
			ball.setPos(paddles[1].getX() - paddles[1].getWidth() / 2 - ball.getWidth() / 2, paddles[1].getY());
			ball.setXSpeed(- ball.getXSpeed());
			scores[0]++;
		}
		
		// A player has generated enough points to win, thus closing the application
		if (scores[1] >= POINTS_TO_WIN) {
			active = false;
			JOptionPane.showMessageDialog(null, "Player 2 has won with " + POINTS_TO_WIN + " points!");
			System.exit(0);
		} else if (scores[0] >= POINTS_TO_WIN) {
			active = false;
			JOptionPane.showMessageDialog(null, "Player 1 has won with " + POINTS_TO_WIN + " points!");
			System.exit(0);
		}

	}