Added comp move function

cleaned up win detection, formatting tweaks