Refactored the Game Object so that it sets the canvas' attributes