Observer Pattern/Border Checker

The class now implements the Observer pattern and checks the caption's location with the edges of the window.