Here is some incredibly simple code to check for collisions. The method is accepting an x and a y coordinate. The for loop then loops through each object on the screen and checks first to see if the x value is within the x-range of the object. If that check returns true, it performs the same check against the y-range. If all checks are true, we remove the object from the list so it will no longer be drawn and increase the score.