Words with Friends implementation in Java