adding post game processing