it works! need to refactor
cleaned up
refactored
3 windows working
infinite loop