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

	}