added tests and game board validness check