Added if condition to method collides() in class Item.
Minor stuff.