added ignoring of temp files
fixed detecting of balls