Tried to implement getMoves