implemented stalemate detection
refactored move director implementation