A little javascript implementation of the game