fix crashing when chip is placed on the edge of the board