added class for playing for graphics