Sliding tile puzzle game in the terminal