Changed Data Structures to varying length array
# for holding the next possible states and actions
# Compiles and runs but needs to be tested