Further collision improvement

Improves issue #9

Added check to see if the ball is coliding with the same tile as last
time by using a unique ID for each tile.

Removed bug that made the dist calculation wrong ( this value is
currently not used. )

Minor code format improvements.