Added intersection testing functions
Fixed line-circle intersection and implemented basic logic for collision detection