Refactored code.
Added the start of collision detection.
Blink code now added.