Fixed frontend. Working AI player