Save move direction in state
Fix move handler for back in time case
Implement game-over? pred
Calculate game-over instead of save it in state
Use map-indexed instead of raw for
Simplify move handler, truncate history when direction sequence has been broken