The two layers of plastic contain the "sensors". They exist as a weird black gunk, and are positioned where you'd expect them to be. The bottom layer of plastic has the "ground" wire, which is the wire that every other wire wants to end on. When another wire touches ground, it completes the circuit and the signal is established. The top layer contains the "active" wires. Each of these are rigged to a specific signal, and send that signal through the chip to the system when they touch the ground wire. If you want to fix it, what you have to do is realign the top layer with the bottom layer, and align the holes in the foam with the lines of the sensors. Then, to make sure it doesn't happen again, tape the plastic to the foam in a manner that doesn't interfere with the sensors.
That should fix the issue.