Changed to auto gameloop. Add new constants.