Added references to the director to fix bugs.
We must have a way to tell when the user is using in-game GUI elements, so that the player controller cant react to clicks.