solver works for chess, made text display in main