Clone of Flappy Bird game in JavaScript and Canvas 2D