board logic