refactored the sets and map in rules to use a position class, added a 2d array to represent the board in the board class