Cleanup server.py

Cleanup with the for-loop and the unused "currPos"