lite refactoring + unit test för boardstate
merging like a boss again?