create game php func changed