finished prototype with player deaths and resource regeneration