yinyangXD:
const int buttonPin = 2; // the number of the pushbutton pin
const int ledPin = 13; // the number of the LED pin
How can you check which person pressed their button first with only a single button > // check if the pushbutton is pressed. How?
if(buttonState1||buttonState2){
delay(5000);
{
if (buttonState == HIGH) {
You're checking three different buttonState variables, but you've only declared and read 1; That's not going to work.