Add cli interface to get next move
Start refactoring