Update function.cpp

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