some quick refactorings
tests for computer play and also game over