Validating max window size
Refactoring win size and mob spawn