Numerical solution of the shallow water eqns on a beach using the weighted average flux method