Made hacksaw usable on terrain (fix by mathieu)

Rewrote relevant code into a switch statement