attributes and refactor game drawing