Added terrain color
Fixed an out of bounds error
Fixed errors.