The game now looks for new graphics more dynamically

Following Albert's great work on importing our own graphics I have made the Lua part a little more dynamic.