basic window drawing implemented with proper level design