moved constants to Board class to make more sense and added handling for setting a margin