A simple turn-based javascript game