a simple single player game with jquery and javascript