Refactored splitting played and remaining tracks to a standard function, use variable to represent key numbers