Added better window detection for 2048