fixed check_seats and added some foundation