Encapsulate getting cells from the positions array and setting a position to a dead cell