Made the console colour changing code a bit more succinct