implementing paint player