Dynamics of a max-type system of difference equations