Coded more on battle function for monster and player

Maybe it work.