This is just a modification of the code from geeks for geeks sorce: https://www.geeksforgeeks.org/pong-game-in-javascript/