Implemented Ajax using jQuery to get match instead of having to push the
button.