Pacman percolation and the glass transition