initialise pressed array to false