added code to play.jsp and servlet