Removed getsize and replaced with fixlimits, and make matrix that help split the logic up, and make it more easily modifiable
Fixed loading and saving.
Levels are automatically compacted when being save. When being loaded they are always padded to make sure checks don't go out of bounds