Update gamefunctions.lua