what function should i use in order to quit my game?
system.exit()
It is described here: https://microstudio.dev/documentation/API/