Text this: Transition of thermally induced flow in a square cavity using Spectral Method