That occasionally happens to me in the opal ward. The best way to solve it is to just give it time, and if after a few minutes you still can't move, try saving using the 'D' key. If you still can't move after that, try soft reseting (since you saved you will still have your shinies).