Added ability to mine in all directions

Also spun off mining ability into separate script like it should be.