starting implementation of the game in javascript