Optimizing Mario Adventures in a Constrained Environment