added flag for if hills are allowed