terrain collision detection
fixed debug messages