Added Goal class.
It's main purpose is to define MAX_VALUE and MIN_VALUE so these don't have to be hardcoded.