implemented side piece collision