here is all my code from my simulation class, contains algorithms like middle squares, middle products, pops and square test