Kings end season in fourth place, now face Ayr in playoffs