I think the code is ready to use, no need of further modification except putting the glass outside the screen and put it on screen when m is pressed