This is not an original design and code. I am currently learning Javascript and the original writer of this game is Simon Bao (SuperSimpleDev)