a simple game by js