Changed the paintScreen() visibility to protected. Changed parameter of
the view constructor to MainPanel (was JPanel). Switching view is now
working