changed color on collision with obstacle object, but still fails collision in some cases