private void checkCollisions() {
		// Collision between ball and left paddle
		if (leftPaddle.collide(ball)) {
			if (ball.getXSpeed() < 0) {
				changeBallTrajectory(true);
			}
		}
		
		// Collision between ball and right paddle
		if (rightPaddle.collide(ball)) {
			if (ball.getXSpeed() > 0) {
				changeBallTrajectory(false);
			}
		}
		
		// Collision between ball and the top or bottom of the window
		if(!(ball.getY() > ball.getHeight() / 2 && ball.getY() < WINDOW_DIMENSIONS[1] - ball.getHeight() / 2)) {
			ball.setYSpeed(- ball.getYSpeed());
		}
	}