Implemented random moves