adds functions to handle gameplay, to be called in onClick listener