Each bar represents a key that's in either a locked or unlocked position. Locked is horizontal and red, unlocked is green and vertical.
The object of the game is to get all the keys into the unlocked position in as few moves as possible.
To turn a key, simply click on it - and here's where it gets complicated! When a key is turned, all the other keys in that key's row and column also turn.
Happy key-turning...