added AI logic
i hate ds store