Targets

It's only the stuff in main in the def target_tile() function that needs to be changed, I don't know how I've managed to send all the other stuff over.  Also, I need to change global keys to global key, but I'll do that now.