Board: Refactor setPosition