Update function.h

In the turn function, the Monster type parameter should NOT be pass by reference. Fixed.