Move parser checks legality but getting errors

the move parser checks legality but i think the is_legal_yellow and
black are not implemented correctly
they have int x and y which dont get changed causing it throw errors.