Removed unnecessary variables
Moved variable initialization closer to where it is used
Extracted askPlayingOrder function