Replace getVerticallyFlipped() with optimised code in GOL class