Initialization of the freePositions needs fix.
Simple glue all affter, and after review code is done.