Improve code for getting off green mat

Improve code for getting off green mat.