https://javascript.plainenglish.io/making-a-web-based-flappy-bird-clone-with-p5-js-part-2-c554254881b1