Java implementation for five hundred game