Ported the changes from the tutorial class to the terrain class. Still buggy :(
Fixed the "offset blabla" bug! (I'm dumb)