Make flush() a static function to agree with call in init()

Initialization of LevelBuffer throws an error because LevelBuffer::flush() expects a static function, but flush is declared non-static