added a simple input validator. also refactored a few miscellaneous methods and wrote some test
Merge branch 'master' of https://github.com/willpiers/tic-tac-toe