implement for console

implement state machine
implement simple game-play
implement simple UI