De-duplicate comand parsing code

Removes some duplicated code and uses only parse_input() to parse the command input.

Note: not sure if "@@ foo" is meant to be supported in all windows so left the code checking for that where it was in gamewin.c.