Fixed containsPoint() method