Implemented gamekit.wait() method