Update engine.cpp

A better way to update the play button icons, which requires less "if" checks and method calls in total.