simple monster goblin game using javascript