added move and validation of move