Removed the edges state.
Changed some nums to ints.