Add homebrew Rect implementation

In theory, we should no longer need pygame. I'm not going to delete any
further imports until The Great Refucktor.