Array based Javascript game.