Almost finished reworking the logic

Made it so that the collision now works on strings and rectangles made
using the strings. Needs some more work as the program thinks that items
are located much lower than they are but it is getting there :)