Rigging problem with IK: why do the bones turn around?
The floating bone controls which direction your knee bends. (or which direction you want your leg to direct). I assume you have 2 knee bone controllers instead of one controlling both. Play with the knee bones, I'm sure you will put 2 and 2 together real quick.