sets up cannon move and draw functions