extract initializePointsInEachPosition function.
remove unused files.