making piece on board code more readable