my own collision detection

dosnt fully work