refined get line command. fixed populate board function.