A Simple java 2d game without using any external libraries