Player is either open or not based on p variable