fixed an error which appeared when renaming function startingPositionsGenerator