Update Main.java

I changed the names of the functions of canvas so here is a main file that uses the right names.
Merge commit '52e2f3c815665aa36ab8b1e51d4bf51d287e6b3b' into plusprojectfiles