adds helper method to determine if the character is near an edge; sets up the controllers instance variables
fixes error with multiple event listenrs on buttons; hides buttons that are next to a boundary