Extracted HitPoints base class

- Extracted HitPoints base class from PlayerHitPoints and
MonsterHitPoints
- Added unit tests for HitPoints class