game made from scratch in java