I can help you understand the logic behind writing a code for this. First make any 8 I/O pins to work as input ones; pull them high( either externally or internally). Then perform polling and check which switch goes low first. You could also arrange these 8 players according to the time they took to press respective buttons.