prevent playing an already played gif

added a quick and dirty way to prevent the script from playing an already played gif.

This should probably be tested with a large gifset before being merged in as it could be very inefficient lol ¯\_(ツ)_/¯¯\_(ツ)_/¯¯\_(ツ)_/¯¯\_(ツ)_/¯