implemented drag/drop and AI player