Mavs beat Kings, keep playoff dream alive