adding move forward and backward feature

little kirby once the current frame hits the end it will reverse from
end to beginning vise versa it will do it continuously since
clearInterval is not invoked