Fixed terminal test and getting next game play

terminal test was just testing for depth. Added test to see if they are
leaf nodes

getting next game play logic was flawed. Fixed