Call game function when receiving messages