Use pty to interface with game