Added functionality to board and test for of rules