Refactored is_invalid_move a little more
Latest refactorings - input() vs raw_input() and thinking about reducing the number of while loops
Resolving merge conflicts