Added get path at square function and tests
Refactored board API
Fixed incorrect board tests