implemented parser for move commands