Finding starting X and Y

Also updating .gitignore.