Refactor flap block function duplication, hide canvas and context to game object
Extracted game parameters into config object