Move player sequencing code to a separate module.