Add more convenient input loops.
Implement game logic, now can play it from the command line.