Added healing ability for medic

Also added a bunch of if(selectedPiece) conditionals since we didn't use
semaphores/mutexes in our multithreading
fixed merge