Reworked word wrapping

I'm pretty sure that some people were getting game freezes from this. So
I've rewritten it and tested it at loads of resolutions, and it seems to
be working fine now.