refactoring project code: seperating edge and corner movie commands into seperate functions