Changed the flags bool array to an int that uses macros to see if certain flags are set