add collision detection
add collision detection