updated template4 to include player struct