fixes bug of pieces sticking on side