will override
conflict resolved
Need to fix undefined lastmove