You changed your constant to unsigned int but you did not change the variable you use in the for loop. It is still an int
If you had turned on all warnings in the IDE (which you should do). the compiler would have been happy to tell you.
C:\sketch_oct16a.ino: In function 'void loop()':
C:\sketch_oct16a.ino:20:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < numberOfSteps; i++) {
~~^~~~~~~~~~~~~~~
C:\sketch_oct16a.ino:20:5: warning: iteration 32767 invokes undefined behavior [-Waggressive-loop-optimizations]
for (int i = 0; i < numberOfSteps; i++) {
^~~
C:\sketch_oct16a.ino:20:23: note: within this loop
for (int i = 0; i < numberOfSteps; i++) {
~~^~~~~~~~~~~~~~~
...