Null value check added before checkCollision()
Very rarely a null value gets into the hashset, so we check for null
values before we run checkCollision()