Farmer Game implementation using Erlang and Java