Added checkmate logic, check logic and statlemate.
Added check, checkmate and stalemate logic.