updated collision detection to get rid of glitch situations (the main problem was resetting ball to exactly a location and checking >= or <= to that location in the code, causing non-deterministic behavior)