Fix mining
Merge branch 'master' of github.com:ryancheu/Battle2013Team0
Don't go to nonexistant medbays, and rebuild them if they get
destroyed