fixed the out of bounds error from the listAllPlays function