added and changed around some things to gie frame more control over game flow