Java based Gravity simulator