working solver and gui integration. Need to work on a play by play feature and history takes up too much memory