Create a game using javascript constructors