Removed O(n) factor from runtime

-removed State class & made accept/neighbors functions O(1) time
trying to fix some git weirdness