Added exception for invalid move input