added states and some connectiosn between them. Also put a basic main
menu in place.