Made a method to see the mouse is within the object
Refactored the mouseWithin function to get the mouses co-ordinates inside itself