Created Canvas class and modified UserInterface for using the new Canvas