cast chess puzzle