Added unit testing, please read extended desc.

Reference to nunit.framework.dll required - it comes with an NUnit
install. Also, added rectangle resolution and removed old level
collision method.