Update Main.java

I changed the names of the functions of canvas so here is a main file that uses the right names.