trying to implement collisions