implemented next moves for