Fixed the torch placement algorithm

Now the torches always faces the nearest ground or path tile
*DISREGARD - GITHUB WEIRDNESS*