adds win condition and removes testing prints
fixes enemy? and friendly? when looking at nil space bug
fixes friendly? and enemy? and reorganizes the code in a few places