It took a lot of work but I finally made it so that it only becomes grayscale when the robot loses all of its lives. To do this, it was necessary for every renderable in each entity class to maintain two distinct texture objects instead of just one. As a result, rendering to grayscale can now be turned on or off at anytime