Simplistic cell simulator in Java