Set keyboard shortcuts to move to the next space to wrap around?
As an alternative to what you are trying to do, I use an app called Which space that puts the space number in the menu bar.  This enables you to always know which space you are in. Knowing this you can use control # to change to space number #.