Refactoring collision detection.
Fixed logic for missile/apple collision.
Merged.