method rewrite

Rewritten code from file project3.java,

so far slideleft, slideright and slideup move
slideright and slideup bot use slideleft by manipulating input arrays before and after running slideleft on them