master: refining a few things. revised win lose detection to handle if moves are possible