tidy sleep out of game etc
add more tests, for cmd line
add tests for ai