private bool PointWithin(Point pos, int x, int y, int width, int height) { return (pos.X > x && pos.Y > y && pos.X < x + width && pos.Y < y + height); }