A solution to the famous eight queens problem