public void doPost(HttpServletRequest req,
                       HttpServletResponse res)
            throws IOException, ServletException {
        //first goal is to be able to receive and process
        //a well formatted XML move piggybacked on a POST

        //this gives me a raw stream to payload of Post request
        Scanner in = new Scanner(req.getInputStream());
        StringBuffer input = new StringBuffer();
        //peel off XML message a line at a time
        while (in.hasNext())
            input.append(in.next());
        //convert to String for convenience
        String inputAsString = input.toString();

        //parse the XML and marshal the java Move_Two object
        Move_Two move = processInput(inputAsString);

        //now create the response
        PrintWriter out = res.getWriter();

        //at this pont we want to return an XML document
        //that represents the move "response" to one or both
        //clients
      /*
        <moveResponse>
          <status>confimed</status>
          <mover> player ID here </mover>
               <loc> loc value here </loc>
             </moveResponse>
      */
        //A good first test is to just veryify that you can
        //successfully send back any XML string. From there
        //building up simple response is trivial and can be
        //done at the level of String building or, if you prefer,
        //DOM objects converted to Strings

        //test xml just to show that we can do it.
        //no significance to this move definition. just mechanics.
        out.println("<move> <location> " + "hello" +
                "</location> </move>");
        out.flush();
        out.close();
    }