wait and notify implemented to make sure HttpHandler finishes before preceeding to gameActivity