working on collision detection of all pieces