updates board logic