client: moved global variables into main()
client: removed unused getPosition() function