refactor tile and board