added some beginner collision detection