Preparation to update state. Many possible cases to consider
Merge branch 'minimax' of https://github.com/rameshvarun/showdownbot into minimax