Made minor changes. Just testing commit function in new IDE.
Imported necessary libraries and fixed incorrect syntax
Modified LoopChecker to work using Position class rather than Pair class and to accept an object of Cluster as an argument.