implement player and lightmask