intersection detection works. now to implement collision