got rid of global state for board dimensions in tiles