made nSteps a long integer after realizing how small the upper limit of an int can be