added move class

started work on p2 logic