Implemented a main window, with fps, current pitch and last pitch flags