Managed window size and added mine counter