Fixed Matrix mapping for terrain and x/y flipping correction. Still working on grabbing height.