private boolean withinBounds(Point p, Point topleft, int width, int height){
    
		double topLimit;
		double bottomLimit;
		
		double leftLimit;
		double rightLimit;
		
		topLimit = topleft.getY();
		bottomLimit = topLimit + height;
		
		leftLimit = topleft.getY();
		rightLimit = leftLimit + width;
		
		boolean inLREdges = (p.x > leftLimit && p.x < rightLimit); 
		boolean inTBEdges = (p.y > topLimit && p.y < bottomLimit);
		
		return (inLREdges && inTBEdges);
	}