Added the beginning of terrain collision. Currently not working.