Updated full screen function to run on windows