Switched to using a hashmap to store max health