Impelmented working minimax player

Implemented a minimax AI player to work with the template UI.