a javascript remake of the classic game