A Star algorithm simulation