finished refactoring of chess -> board functions
added tests for board ns