added main, painter, and entity class