Fixed wrong move bug