I found the problem! It was cura!

There is a setting that says "machine center 0,0"

Machine> Machine settings> tick the box that says "machine center 0,0"

The reason my printer was printing a square was because it though it was hitting the limit of the print bed when it really wasn't.