karn's submission of Bear and Random Grid | CodeChef