updated few functions in gamebox and kingdoms