Refactoring ball object.
Refactoring ball object.

Removed global variable ball.currentBallNumber and made it a local variable in the functions ball.draw() and ball.incrementYCoords()
Refactoring ball object.

Split ball.draw() into new functions ball.obtainCurrentNumberOfBallsInPlay(), ball.incrementYCoords() and ball.draw()
Refactoring ball object.

Added comments. Finished refactoring.
Refactoring answer object.

Edited comments.
Refactoring button object.

Edited comments.
Refactoring ball object.

Renamed variables type1Image and type2Image to yellowBallImage and redBallImage.
Refactoring canvas object.
Refactoring elementID object.
Refactoring game object.

Split game.begin() function up and created new functions:
game.hasNotBegun(),
game.ignoreFurtherMouseClicks(),
game.setPlayer1Dimensions(),
game.setBallDimensions(),
game.addEventListenerForMouseMovement().

Also moved 'initialClick' variable from the canvas object to the
game object.
Refactoring game object.

Edited game.prepare().
Created new function elementId.setShorthands().
Refactoring game object.

Created function canvas.setDimensions()
Refactoring game object.

Created new function canvas.setPlayer1Boundaries().
Refactoring game object.

Created new function game.displayStartScreenText().
Refactoring game object.

Created new function setTextForInstructionsElement().
Finished refactoring game.prepare().
Refactoring game object.

Changed function name game.pauseTick() to game.pause().
Refactoring game object.

Changed function name game.restartAfterQuestion() to prepareForNextRound().
Created new function game.displayGetReadyScreen().
Refactoring game object.

Edited function game.startTick().
Finished refactoring game object.
Refactoring player1 object.

Edited function player1.draw().
Refactoring player1 object.

Renamed function player1.handleMouseMovement() to player1.setCoordinates().
Finished refactoring player1 object.