Move playing code added