This is a pet project for a small RPG. It is for me to learn how to better code in javascript