func (r Rect) ContainsRect(rect Rect) bool {
	return r.x <= rect.x && r.y <= rect.y && r.x+r.w >= rect.x+rect.w && r.y+r.h >= rect.y+rect.h
}
ContainsRect returns true if a rectangle contains another rectangle
package engine
import (
	"bytes"
	"strconv"
)
type Rect struct {
	x uint8
	y uint8
	w uint8
	h uint8
}
func NewRect(x, y, w, h uint8) Rect {
	return Rect{
		x: x,
		y: y,
		w: w,
		h: h,
	}
}
func (r Rect) Width() uint8 {
	return r.w
}
func (r Rect) Height() uint8 {
	return r.h
}
func (r Rect) X() uint8 {
	return r.x
}
func (r Rect) Y() uint8 {
	return r.y
}
func (r Rect) ContainsDot(d Dot) bool {
	return r.x <= d.X && r.y <= d.Y && r.x+r.w > d.X && r.y+r.h > d.Y
}