piece collision detection added