changed isCanvasEmpty to isCanvasPortionOccupied which checks other obstacles